package hxy.bytecode.datastruct.queue;

import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.locks.ReadWriteLock;

/**
 * @author eric
 * @date 2021/5/19
 */
public class ArrayBlockingQueueTest {
    public static void main(String[] args) {
        ArrayBlockingQueue arrayBlockingQueue = new ArrayBlockingQueue(100);
        try {
            arrayBlockingQueue.put(1);
            arrayBlockingQueue.add(1);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

//        ReadWriteLock readWriteLock = new ReadWriteLock();
        ConcurrentHashMap concurrentHashMap = new ConcurrentHashMap();
    }
}
